package com.cms.controller.admin;


import com.cms.domain.Feedback;
import com.cms.utils.CacheUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;


/**
 * Controller - 缓存
 * 
 * 
 * 
 */
@Controller("adminCacheController")
@RequestMapping("/admin/cache")
public class CacheController extends BaseController {
	
	/**
	 * 清除缓存
	 */
	@ResponseBody
	@RequestMapping("/delete")
    public Feedback delete() {
		CacheUtils.clearAll();
		return Feedback.success(new HashMap<>());
	}

}